package fy.mdm.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class PurchasePartsBean {
	private String ITEM;//ITEM
	private String ProjectDescription;//材料名称项目说明
	private String SpecificationType;//材料型号规格
	private String Unit;//单位
	public String getITEM() {
		return ITEM;
	}
	public void setITEM(String iTEM) {
		ITEM = iTEM;
	}
	public String getProjectDescription() {
		return ProjectDescription;
	}
	public void setProjectDescription(String projectDescription) {
		ProjectDescription = projectDescription;
	}
	public String getSpecificationType() {
		return SpecificationType;
	}
	public void setSpecificationType(String specificationType) {
		SpecificationType = specificationType;
	}
	public String getUnit() {
		return Unit;
	}
	public void setUnit(String unit) {
		Unit = unit;
	}
	public String getID() {
		return new StringBuilder().append("ITEM").append(ITEM)
				.toString();
	}
	public JSONObject getJSONObject() throws JSONException {
		JSONObject jo = new JSONObject();
		jo.put("ITEM", ITEM);
		jo.put("ProjectDescription", ProjectDescription);
		jo.put("SpecificationType", SpecificationType);
		jo.put("Unit", Unit);

		return jo;
	}
}
